package com.plexpt.chatgptonlinejava.config;

public class RedisProperties {
    String address;
    int db;
    String password;
    RedisPool pool;
    String baseKey;

    public RedisProperties() {
    }

    public String getAddress() {
        return this.address;
    }

    public int getDb() {
        return this.db;
    }

    public String getPassword() {
        return this.password;
    }

    public RedisPool getPool() {
        return this.pool;
    }

    public String getBaseKey() {
        return this.baseKey;
    }

    public void setAddress(final String address) {
        this.address = address;
    }

    public void setDb(final int db) {
        this.db = db;
    }

    public void setPassword(final String password) {
        this.password = password;
    }

    public void setPool(final RedisPool pool) {
        this.pool = pool;
    }

    public void setBaseKey(final String baseKey) {
        this.baseKey = baseKey;
    }

    public static class RedisPool {
        int size;
        int minIdle;

        public RedisPool() {
        }

        public int getSize() {
            return this.size;
        }

        public int getMinIdle() {
            return this.minIdle;
        }

        public void setSize(final int size) {
            this.size = size;
        }

        public void setMinIdle(final int minIdle) {
            this.minIdle = minIdle;
        }
    }
}